package com.zyy.admin.repo;

import com.zyy.admin.entity.LabelUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface LabelUserRepository extends JpaRepository<LabelUser, Integer>, JpaSpecificationExecutor<LabelUser> {
    Optional<LabelUser> findFirstByIdAndStatus(Integer integer, Integer status);
    Optional<LabelUser> findFirstByIdAndStatusGreaterThanEqual(Integer integer, Integer status);

}